/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.leadiv.ai.neuralnet;

import java.util.Vector;
import com.leadiv.ai.minesweeper.util.*;

/**
 *
 * @author pborrego
 */
public class SNeuron {
	//the number of inputs into the neuron
	public int m_NumInputs;

	//the weights for each input
	public Vector<Double> m_vecWeight = new Vector<Double>();


	//ctor
	public SNeuron(int NumInputs)
        {
            m_NumInputs = NumInputs + 1;
            
            //we need an additional weight for the bias hence the +1
            for (int i=0; i<NumInputs+1; ++i)
            {
                //set up the weights with an initial random value
                m_vecWeight.add(Utils.RandomClamped());
            }
        }
}